<?php
session_start();
require('sqlconnect.php');
if (isset($_GET['logout'])) {
    session_destroy();
    setcookie("user", "", time() - 3600);
    header("Location:HomePage.php");
}
?>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome Froshies!</title>
        <link rel="stylesheet" href="style.css" type="text/css" media="all" />
        <script src="jquery-1.7.2.min.js" type="text/javascript"></script>
        <script type ="text/javascript" src="login.js"></script>
        <script type ="text/javascript" src="menujs.js"></script>


        <script type ="text/javascript" src="Galleryjs.js"></script>
    </head>
    <body>

        <div id="fb-root"></div>
        <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

        <div id="wrap">  
            <div id="header">
                <div>

                    <a href="HomePage.php"><img id="imgheader"></a>

                </div>
            </div>
           <div id="menu">
                 <ul id="nav">
 


                    <li><a href="HomePage.php" title="Home">Home</a></li>		
                    <li><a href="Campus.php"title="Campus">Campus</a></li>
                    <li><a href="Gallery.php" title="Gallery">Gallery</a></li>
					<?php if ($_SESSION['type'] == 1) { echo '<li><a href="Upload.php" title="Upload">Upload Photo</a></li>'; } ?>
                    <li><a href="#" title="Sponsors">Sponsors</a></li>
                    <li onmouseover="submenushow()" onmouseout="submenuhide()"><a href="LAMB.php" title="Lamb">Lasallian Ambassadors</a></li>
			
		    
                    <li><a href="#" title="FAQ">FAQ</a></li>  </ul>
            
			<ul id="submenu" onmouseover="submenushow()">
                                <li><a href="#">Human Reasource Management<br> and Developement </a></li><br>
                                <li><a href="#">Marketing and Publicity</a></li><br>
                                <li><a href="#">Operations and Logistics</a></li><br>
				<li><a href="#">Research and Documents</a></li><br>
                        </ul>

</div>
            <div id="content">

                <div class="article">
                    <div class="inside">

                        <a href="images.php?college=CCS"><img class="collegethumb" src="images/gallery/CCS.png"></a>
                        <a href="images.php?college=CED"><img class="collegethumb" src="images/gallery/CED.png"></a>
                        <a href="images.php?college=CLA"><img class="collegethumb" src="images/gallery/CLA.png"></a>
                        <a href="images.php?college=COB"><img class="collegethumb" src="images/gallery/COB.png"></a>
                        <a href="images.php?college=COE"><img class="collegethumb" src="images/gallery/COE.png"></a>
                        <a href="images.php?college=COS"><img class="collegethumb" src="images/gallery/COS.png"></a>
                        <a href="images.php?college=SOE"><img class="collegethumb" src="images/gallery/SOE.png"></a>

                    </div>                   
                </div>


            </div>
            <div id="sidebar">


                <div class="widget" style="padding-bottom: 20px;">

                    <div class="inside">
							<?php require("session.php"); ?>                                                    
                    </div>

                </div>

                <div class="widget" style="padding-bottom: 20px;">

                    <div class="inside">
                        <form style="margin-top:30px;" id="search" class="search">
                            <ul>
                                <li>
                                    <h4 style="font-size:12pt;">Search</h4>
                                </li>
                                <li>
                                    <label for="college">College:</label>
                                    <select name="college" class="formelement">
                                        <option value="CCS">CCS</option>
                                        <option value="CED">CED</option>
                                        <option value="CLA">CLA</option>
                                        <option value="COS">COS</option>
                                        <option value="COE">GCOE</option>
                                        <option value="COB">RVR-COB</option>
                                        <option value="SOE">SOE</option>
                                    </select>
                                </li>
                                <li>
                                    <input name="blockName" placeholder="Block Name" id="blockName" type="text"/>	<br>
                                </li>
                                <li>
                                    <button  id="searchButton" type="submit" onclick="&search=">Search</button>
                                </li>


                            </ul>
                        </form>	


                    </div>
                </div> 
            </div>

            <div class="fb-like-box" data-href="http://www.facebook.com/pages/Lasallian-Ambassadors/226171910194" data-width="200" data-height="240" data-show-faces="true" data-stream="false" data-header="true"></div>



        </div>
    </div>
</body>
</html>
